package com.king.mind;

import java.util.List;

import lombok.Getter;
import lombok.Setter;

/**
 * 章节节点
 */
@Getter
@Setter
public class VolumeNode extends Node {
	private String title;
	private String subTitle;

	private List<ChapterNode> children;

	public double getTitleHeight() {
		return NodeProperty.TITLE_HEIGHT;
	}

	public double getSubTitleHeight() {
		return NodeProperty.SUB_TITLE_HEIGHT;
	}

	public double getHeight() {
		return NodeProperty.TITLE_HEIGHT + NodeProperty.SUB_TITLE_HEIGHT;
	}

	public double getWidth() {
		return NodeProperty.WIDTH;
	}
}
